package com.zhiche.lisa.bms.dao.model.contract;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 合同油卡明细
 * </p>
 *
 * @author liuanshun
 * @since 2018-10-28
 */
@TableName("lisa_contract_finalpay")
public class ContractFinalpay extends Model<ContractFinalpay> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
	@TableField("head_id")
	private Long headId;
    /**
     * 油卡卡号
     */
	private String finalpay;
    /**
     * 金额
     */
	private BigDecimal sum;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getHeadId() {
		return headId;
	}

	public void setHeadId(Long headId) {
		this.headId = headId;
	}

	public String getFinalpay() {
		return finalpay;
	}

	public void setFinalpay(String finalpay) {
		this.finalpay = finalpay;
	}

	public BigDecimal getSum() {
		return sum;
	}

	public void setSum(BigDecimal sum) {
		this.sum = sum;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ContractFinalpay{" +
			", id=" + id +
			", headId=" + headId +
			", finalpay=" + finalpay +
			", sum=" + sum +
			"}";
	}
}
